package com.example.automanagement.service.serviceImpl;

import com.example.automanagement.entity.RepairGeneralApproval;
import com.example.automanagement.mapper.RepairApprovalMapper;
import com.example.automanagement.service.RepairApprovalService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class RepairApprovalServiceImpl implements RepairApprovalService {
    @Resource
    private RepairApprovalMapper repairApprovalMapper;

    @Override
    public void addRepairApproval(RepairGeneralApproval approval) {
        repairApprovalMapper.addRepairApproval(approval);
    }
    @Override
    public RepairGeneralApproval getRepairGeneralApproval(String orderId) {
        return repairApprovalMapper.getRepairGeneralApproval(orderId);
    }
}
